/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-13
 * Time: 22:36
 */
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String string = sc.next();

        if (string.length()!=8|| !(string.substring(2,4).equals("01")||string.substring(2,4).equals("02")
                ||string.substring(2,4).equals("03")
                ||string.substring(2,4).equals("20"))) {
            System.out.println("Wrong Format");
            return;
        }

        System.out.println("入学年份：20"+string.substring(0,2)+"年");

        if (string.substring(2,4).equals("01")){
            System.out.println("学院：材料学院");
        }else if (string.substring(2,4).equals("02")){
            System.out.println("学院：机械学院");
        }
        else if (string.substring(2,4).equals("03")){
            System.out.println("学院：外语学院");
        }
        else if (string.substring(2,4).equals("20")){
            System.out.println("学院：软件学院");
        }
        else{
            System.out.println("Wrong Format");
            return;
        }

        System.out.println("班级："+string.substring(4,6));
        System.out.println("学号："+string.substring(6,8));
    }
}
